#include "handlers.h"

struct interrupts_data INTERRUPTS;


register u64 param asm ("r15");

void pre_check(void) {
	INTERRUPTS.int_info.int_num = param;
	INTERRUPTS.int_info.interrupt = 1;
	INTERRUPTS.int_info.count ++;
}

void save_error_code(void) {
	INTERRUPTS.int_info.has_error_code = 1;
	INTERRUPTS.int_info.error_code = param;
}
